package Goodspackage;

import java.io.Serializable;

import MainClass.Goods;


/**
* 
*Book�ࣻ
*/
public class Book extends Goods implements Serializable{
private String author;


public Book(String name, double price, int sales_number,String author) {
	super(name,price,sales_number);
	this.author = author;
}

public String getAuthor() {
	return author;
}

public void setAuthor(String author) {
	this.author = author;
}

    @Override
    public String toString() {
        return "书名:" + this.getName() + "\n" +
                "作者:" + this.author + "\n" + 
                "价格:" + this.getPrice() + "\n"+
                "销量:" + this.getSales_number() + "\n";
    }


}
